<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>新闻中国</title>
<link href="news/css/main.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div id="header">
		<%-- <jsp:include page="/LoginPartionServlet"></jsp:include> --%>
		<%@include file="loginPartion.jsp" %>
	</div>
	<div id="container">
		<jsp:include page="/GetSideNewsServlet"></jsp:include>
		<div class="main">
			<div class="class_type">
				<img src="news/images/class_type.gif" alt="新闻中心" />
			</div>
			<div class="content">
				<ul class="class_date">
					<li id='class_month'>
						<c:forEach items="${topic}" var="t" varStatus="c" >
							 <a href="GetTopicAndNewsServlet?tid=${t.tid}"><b>${t.tname}</b></a>
							<c:if test="${c.count%11==0}">
								</li><li  id='class_month' >
							</c:if>
						</c:forEach>
					</li>
				</ul>
					 <c:forEach items="${page.datas}" var="p" varStatus="c" >
					 	<li>
							<a href='NewsContentServlet?nid=${p.nid}'>${p.ntitle}</a>
							<span style="float:right;margin-right:20px">
							<fmt:formatDate value="${p.nmodifyDate!=null?p.nmodifyDate:p.ncreateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
							</span>
						</li>
					 <c:if test="${c.count%5==0}">
								<li class='space'></li>
							</c:if>
					 </c:forEach>
					
					 <p align="right">当前页数:[${page.totalPages!=0?page.pageNo:0}/${page.totalPages}]&nbsp;
					 	<a href="GetTopicAndNewsServlet?tid=${tid}&pageNo=1">首页</a>&nbsp;
					 	<c:if test="${page.pageNo>1}">
					 	<a href="GetTopicAndNewsServlet?tid=${tid}&pageNo=${page.pageNo-1}">上一页</a>&nbsp;
					 	</c:if>
					 	<c:if test="${page.pageNo<page.totalPages}">
					 		<a href="GetTopicAndNewsServlet?tid=${tid}&pageNo=${page.pageNo+1}">下一页</a>&nbsp;
					 	</c:if>
					 	
					 	<a href="GetTopicAndNewsServlet?tid=${tid}&pageNo=${page.totalPages}">末页</a>&nbsp;
					  
					 </p>
				</ul>
			</div> 
			<div class="picnews">
				<ul>
					<li><a href="#"><img src="newsSystem/../news/images/Picture1.jpg" width="249"
							alt="" /> </a><a href="#">幻想中穿越时空</a></li>
					<li><a href="#"><img src="newsSystem/../news/images/Picture2.jpg" width="249"
							alt="" /> </a><a href="#">国庆多变的发型</a></li>
					<li><a href="#"><img src="newsSystem/../news/images/Picture3.jpg" width="249"
							alt="" /> </a><a href="#">新技术照亮都市</a></li>
					<li><a href="#"><img src="newsSystem/../news/images/Picture4.jpg" width="249"
							alt="" /> </a><a href="#">群星闪耀红地毯</a></li>
				</ul>
			</div>
		</div>
		
	</div>
	<jsp:include page="/BottomPartionServlet"></jsp:include>
</body>
</html>

